import json

from flask import Flask
import _json
import requests

app = Flask(__name__)



@app.route('/')
def hello_world():
    url = "https://api.apiopen.top/getJoke?page=1&count=2&type=video"
    response = requests.get(url)
    a = response.text
    print(a)
    json_dict = json.loads(a)
    print(json_dict)
    return 'Hello World!'


if __name__ == '__main__':
    app.run()
